x86: Fix emulation of REP prefix.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 20 Feb 2007 16:57:50 +0000 (16:57 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 20 Feb 2007 16:57:50 +0000 (16:57 +0000)
commitfe300600464ca9b82e1dc4b315d2d65c786bfa49
treee4b8a474355a09c6d906d86d33214fae97160a2b
parentde83482a5565302cadff31d136a6d0ebf9bc2eca
x86: Fix emulation of REP prefix.
Firstly, it should be ignored when used with any opcode for which it
is undefined. Secondly, the count register (rCX) width depends on
address size.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/x86_emulate.c